package com.youxuan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youxuan.pojo.entity.CartDetail;
import com.youxuan.pojo.vo.GoodsVo;

import java.util.List;

public interface CartDetailService extends IService<CartDetail> {

    List<CartDetail> getCartDetailByCid(Long cartId);

    void addCartGoods(CartDetail cartDetail);

    CartDetail getCartDetailByCidAndGid(Long cartId, Long goodsId);

    void changeCartGoodsNum(CartDetail cartDetail);

    void changeCartGoodsSelect(Long gid, Long uid,String isSelect);

    void changeCartGoodsNum(Long gid, Long uid, Integer num);

    GoodsVo getCartGoodsDetail(Long gid, Long uid);

    void deleteCartGoods(Long userId, Long goodsId);
}
